/**
 * 2009-10-27 下午04:49:46 
 * esignature
 * com.smc.action.hospital
 * HospitalTestAction
 */
package com.smc.action.hospital;

import com.opensymphony.xwork2.ActionSupport;
import com.smc.domain.model.Hospital;
import com.smc.server.HospitalService;

/**
 * @author chenheng
 * @version 0.0.1
 */
public class HospitalTestAction extends ActionSupport {

	private static final long serialVersionUID = -3360427413486785385L;
	private HospitalService hospitalService ;
	private Hospital hospital ;
	public Hospital getHospital() {
		return hospital;
	}
	public void setHospital(Hospital hospital) {
		this.hospital = hospital;
	}
	public HospitalService getHospitalService() {
		return hospitalService;
	}
	public void setHospitalService(HospitalService hospitalService) {
		this.hospitalService = hospitalService;
	}
	public String addTestHospital() {
		hospital = new Hospital();
		hospital.setAddress("048 E. Forsyth Street Americus, GA 31709");
		hospital.setCity("Georgia");
		hospital.setEmail("pr@sumterregional.org");
		hospital.setFax("229-924-1014");
		hospital.setName("Sumter Regional History");
		hospital.setUuid(null);
		hospitalService.save_AD_IG_SA_hospital(hospital);
		
		hospital.setAddress("509 Sumter St Ste 574 Montezuma, GA 31063");
		hospital.setCity("Montezuma");
		hospital.setEmail("pr@flintriverhospital.com");
		hospital.setFax("478-472-3100 ");
		hospital.setName("Flint River Hospital");
		hospital.setUuid(null);
		hospitalService.save_AD_IG_SA_hospital(hospital);
		
		return SUCCESS ;
	}
}
